package com.xxxx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xxxx.BeanLoad.RestBean;

@Controller
@RequestMapping("/test")
public class TestController {

	@Autowired
	RestBean restBean;

	@RequestMapping("/test")
	@ResponseBody
	String home() {
		System.out.println(restBean.getName());
		return "Hello World!";
	}
}
